<?php
session_start();

function record_time(){
    if(!isset($_SESSION['countdown'])){
        return ;
    }
    if(!isset($_SESSION['record_start_time'])){
        $_SESSION['record_start_time'] = false;
    }
    
    if($_SESSION['record_start_time'] == false){
        array_push($_SESSION['start_times'], time());
        $_SESSION['record_start_time'] = true;
    }else{
        return ;
    }
}

record_time();
?>